package chapter08;

import java.util.Scanner;

public class Day10 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入一个正整数：");
        int sum = 0;
        for (int i = input.nextInt(); i >0 ; i/=10) {
            sum = sum*10+(i%10);
        }
        System.out.println(sum+1024);

    }
}
